<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>${fns:getConfig('productName')}</title>
    <%@include file="/WEB-INF/views/include/head-new.jsp" %>
    <!--jquery table page-->
    <link rel="Stylesheet" href="${ctxStatic}/AdminLTE/plugins/jerichotab/css/jquery.jerichotab.css"/>
    <script type="text/javascript" src="${ctxStatic}/AdminLTE/plugins/jerichotab/js/jquery.jerichotab.js"></script>
</head>
<script type="text/javascript">
    var jericho = {
        showLoader: function () {
            $('#divMainLoader').css('display', 'block');
        },
        removeLoader: function () {
            $('#divMainLoader').css('display', 'none');
        },
        buildTabpanel: function () {
            $.fn.initJerichoTab({
                renderTo: '#divRight',
                uniqueId: 'myJerichoTab',
                contentCss: {'height': $('#divRight').height() - 20},
                tabs: [{
                    title: '设备详细信息',
                    closeable: false,
                    data: {dataType: 'iframe', dataLink: '${pageContext.request.contextPath}/f/sydwfront/deviceForm?tzsbbh=${deviceParameters.tzsbbh}'}
                }, {
                    title: '维保记录列表',
                    closeable: false,
                    data: {dataType: 'iframe', dataLink: '${pageContext.request.contextPath}/f/sydwfront/mainList?deviceCode=${deviceParameters.sbzcdm}'}
                }, {
                    title: '故障记录列表',
                    closeable: false,
                    data: {dataType: 'iframe', dataLink: '${pageContext.request.contextPath}/f/sydwfront/failureList?deviceCode=${deviceParameters.sbzcdm}'}
                }, {
                    title: '年检记录',
                    closeable: false,
                    data: {dataType: 'iframe', dataLink: '${pageContext.request.contextPath}/f/sydwfront/inspectList?sbzcdm=${deviceParameters.sbzcdm}'}
                }, {
                    title: '保险记录',
                    closeable: false,
                    data: {dataType: 'iframe', dataLink: '${pageContext.request.contextPath}/f/sydwfront/insuranceList?sbzcdm=${deviceParameters.sbzcdm}'}
                }],
                activeTabIndex: 0,
                loadOnce: true
            });
        }
    }
    $(document).ready(function () {
        var d1 = new Date().getTime();
        jericho.showLoader();
        var w = $(document).width();
        var h = $(document).height();
        $('#divRight').css({height: h - 50, 'display': 'block'});
        jericho.buildTabpanel();
        jericho.removeLoader();
    });
    $(window).resize(function () {
        var w = $(document).width();
        // $('#divRight').css({width: w - 250});
    });
</script>
<body>
<div id="main" class="wrapper">
    <section id="divRight"></section>
</div>
<div class="form-actions" style="text-align: center">
    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</body>
</html>
